package com.gpjcjl.http;


import io.reactivex.ObservableTransformer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;

/**
 * Created by hzy on 2019/1/10
 * 线程调度
 **/
public class RxSchedulers {

    public static <T> ObservableTransformer<T, T> ioMain() {
        return upstream -> upstream.subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread());
    }

}
